feat: google sheets support (in google drive builtin MCP server)#1601
Merged
kalvinnchau merged 6 commits intomainfrom Mar 12, 2025
Merged
feat: google sheets support (in google drive builtin MCP server)#1601kalvinnchau merged 6 commits intomainfrom
kalvinnchau merged 6 commits intomainfrom
Conversation
Closed
* main: feat: enable smart approve for user by default (#1599) ui: fix modal state (#1598) ui: setting configuration (#1597) fix: merge error logging in goose bench (#1545) feat: add additional goosebench evals (#1571) chore: update types and imports (#1594) Retain session through view changes (#1580) docs: Add steps for desktop tutorial (#1590) remove env vars from bottom menu model setting (#1584) Fix Goosehints modal UI (#1581) docs: typo fix (#1593) feat: update config endpoints for use with providers (#1563) fix: update anthropic provider headers (#1592) feat: Build Goose in a Docker Container (#1551) docs: voyp blog post (#1588)
Contributor
There was a problem hiding this comment.
PR Overview
This PR adds support for handling Google Sheets to the Google Drive MCP server by integrating the google-sheets4 library and implementing a new sheets_tool with operations for listing sheets, extracting column headers, and retrieving data ranges.
- Introduces a new sheets field in the router that uses the google-sheets4 API.
- Adds a new tool ("sheets_tool") and related asynchronous functions to handle sheets operations.
- Updates documentation/instructions and Cargo.toml to include the new dependency.
Reviewed Changes
| File | Description |
|---|---|
| crates/goose-mcp/src/google_drive/mod.rs | Added support for Google Sheets through new functions and updated tool instructions. |
| crates/goose-mcp/Cargo.toml | Added the google-sheets4 dependency. |
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
crates/goose-mcp/src/google_drive/mod.rs:622
- The default range value '1:1' in the get_columns operation might be ambiguous if no sheetName is provided. Consider either requiring an explicit sheet name or using a more explicit default (e.g., 'Sheet1!1:1') to avoid retrieving unintended data.
.and_then(|q| q.as_str()).map(|s| format!("{}!1:1", s)).unwrap_or_else(|| "1:1".to_string()); // Default to first row of first sheet
crates/goose-mcp/src/google_drive/mod.rs:693
- [nitpick] In the get_values operation, using unwrap_or_default() when converting cell values may silently drop non-string data. Consider adding explicit handling for non-string cell values to ensure robust CSV generation.
.map(|cell| cell.as_str().unwrap_or_default().to_string())
* origin: docs: Persistent Command History (#1627) change to make build work on windows, macos, linux (#1618) chore(release): release version 1.0.13 (#1623) fix: handle mac screenshots with the image tool (#1622) feat: write eval results to eval dir (#1620) [fix] fix model config logging to remove api key (#1619) fix: ensure repeating benches return to initial run-dir (#1617)
ahau-square
pushed a commit
that referenced
this pull request
May 2, 2025
cbruyndoncx
pushed a commit
to cbruyndoncx/goose
that referenced
this pull request
Jul 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes: #1609
Does add a sheets lib (similar to the one there for drive) - not really noticeable additional size.
Testing it (manual as requires google docs setup with oauth):
